﻿<?xml version="1.0" encoding="utf-8" ?>
<Form Name="Contact Us" ValidationSummary="true" SuccessPage="/Pages/Success.aspx" UseDefaultStyle="true" EmailEnabled="true">
    <Providers>
        <Provider Type="DataStore" Name="StandardProvider" />
        <Provider Type="FileSystem" Name="StandardProvider" />
        <Provider Type="Validation" Name="StandardProvider" />
        <Provider Type="Email" Name="StandardProvider" RecipientAddress="recipient1@yourdomain.com,recipient2@yourdomain.com" SenderAddress="no-reply@yourdomain.com" />
    </Providers>
    <FieldSet Name="Contact Us">
        <Field Name="First Name" Type="TextBox">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please enter a first name" Display="Dynamic"/>
        </Field>
        <Field Name="Last Name" Type="TextBox">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please enter a last name" />
        </Field>
        <Field Name="Email" Type="TextBox">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please enter an email" />
            <Validator Type="RegularExpressionValidator" Text="*" ErrorMessage="Please enter a valid email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"/>
        </Field>
        <Field Name="Comment" Type="TextArea">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please enter a comment" Display="Dynamic"/>
        </Field>
    </FieldSet>
    <FieldSet>
        <Field Name="Terms and Conditions" Type="CheckBox">
            <Validator Type="RequiredFieldValidator" Text="*" ErrorMessage="Please agree to the terms and conditions" Display="Dynamic"/>
        </Field>
    </FieldSet>
</Form>